package com.cwh.taskcenter.domain.reward.model;

import com.alibaba.cola.domain.Entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author cwh
 */
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RewardRecord {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
     *
     */
    private Long taskId;

    /**
     *
     */
    private Long userTaskId;

    /**
     * 奖励类型
     */
    private String rewardType;

    /**
     * 奖励值
     */
    private String rewardValue;

    /**
     * 0-未发放 1-已发放 2-已使用
     */
    private Integer rewardStatus;

    /**
     * 领取时间
     */
    private LocalDateTime claimTime;

    /**
     * 奖励过期时间
     */
    private LocalDateTime expireTime;

    /**
     *
     */
    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

}
